import request from '../../utils/httpRequest'

const wareordertaskdetail = '/ware/ware/wareordertaskdetail'

// 查询list
export function getWareOrderTaskDetailList (param) {
  return request({
    url: `${wareordertaskdetail}/list`,
    method: 'get',
    param
  })
}

// 根据ids批量删除
export function deleteWareOrderTaskDetailByIds (data) {
  return request({
    url: `${wareordertaskdetail}/delete`,
    method: 'delete',
    data
  })
}

// 根据id查询
export function getWareOrderTaskDetailById (id) {
  return request({
    url: `${wareordertaskdetail}/info/${id}`,
    method: 'get'
  })
}

// 新增
export function saveWareOrderTaskDetail (data) {
  return request({
    url: `${wareordertaskdetail}/save`,
    method: 'post',
    data
  })
}

// 修改
export function updateWareOrderTaskDetail (data) {
  return request({
    url: `${wareordertaskdetail}/update`,
    method: 'put',
    data
  })
}
